<template>
  <div class="good_container">
      <h3>{{goodsInfo.title}}</h3>
      <hr>
      <div v-html="goodsInfo.content" class="goods_content"></div>

  </div>
</template>

<script>
import { Toast } from 'mint-ui';
export default {
    data(){
        return{
            goodsInfo:{}

        }
    },
    created(){
        this.getDescInfo()
    },
    methods:{
        getDescInfo(){
            this.$http.get('http://www.liulongbin.top:3005/api/goods/getdesc/'+this.$route.params.id).then(res=>{
                if(res.body.status === 0)
                {
                    this.goodsInfo = res.body.message[0]
                    console.log(this.list)

                }else{
                    Toast('详情加载失败！！！')

                }
            })
        }
    }
    

}
</script>

<style scoped>
h3{
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
}
.goods_content img{
    width: 100%;
}



</style>